import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
// import '@/utils/rem'
// 全局重置html样式
import '@/assets/css/reset.css'


// 引入react-redux来简写在组件获取和操作redux
// Provider组件有一个属性，store需要指定redux数据源
import { Provider } from 'react-redux'
import store from './store'


// 路由
// 定义本项目中路由使用的模式 hash/history 
// import { BrowserRouter as Router } from 'react-router-dom'
import { HashRouter as Router } from 'react-router-dom'



ReactDOM.render(
  <React.StrictMode>
    <Provider store={store}>

      <Router>
        <App />
      </Router>

    </Provider>
  </React.StrictMode>,
  document.getElementById('root')
)
